package ru.spb.osll.myfit.client.widget;

import com.google.gwt.user.client.ui.Label;
import ru.spb.osll.myfit.common.ExecutingResult;

public class ProgressLabel extends Label implements ExecutingListener {
  public ProgressLabel() {
    setVisible(false);
    setStyleName("progressbarText");
  }

  public void updateView(String labelText) {
    setText(labelText);
  }

  @Override
  public void processExecutingResult(ExecutingResult result) {
    updateView(result.getStatusString());
  }

  @Override
  public void finish() {

  }
}